package com.dailyblue.example.project.bookstore.user.feign;

import com.dailyblue.example.project.bookstore.commons.bean.Book;
import com.dailyblue.example.project.bookstore.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "bookstore-book")
public interface BookFeign {
    @GetMapping("/book/front/id/{id}")
    JsonResult<Book> findBookById(@PathVariable("id") String id);
}
